
package demo1;

public class Test {

    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        myArraylist.add(1);
        myArraylist.add(2);
        myArraylist.add(3);
        myArraylist.add(4);
        myArraylist.add(5);
        myArraylist.add(-1);
        myArraylist.add(-1,1);
        myArraylist.display();

        //myArraylist.get(100);
      /*  myArraylist.clear();
        myArraylist.get(1);
        */
        //myArraylist.set(0,2);
        //myArraylist.remove(4);
        //myArraylist.display();
        //System.out.println(myArraylist.get(1));
        //System.out.println(myArraylist.indexOf(4));
    }
}
